<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        const people = {
            name: "ming",
            age: 18,
            sex: "man"
        }
        //将对象的属性名以数组的形式保存
        console.log(Object.keys(people));
        //属性值以数组的形式保存
        console.log(Object.values(people));
        //将对应的属性值：属性名，以数组的形式保存
        console.log(Object.entries(people));
        //对象属性的描述对象
        console.log(Object.getOwnPropertyDescriptors(people));
    </script>
</body>

</html>